home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_actor_indyjeep.cog < prev    next >
Text File  |  1999-11-15  |  2KB  |  104 lines

  1. # Jones 3D Cog Script
  2. #
  3. # actor_IndyJeep.cog
  4. #
  5. # [RT] [MDR]
  6. #
  7. # Indy's script while driving the jeep.
  8. #
  9. # (C) 1998 LucasArts Entertainment Company LLC. All Rights Reserved
  10. #
  11. # ===================================================================
  12.  
  13. symbols
  14.  
  15. message        startup
  16. message        user0
  17. message        user1
  18. message        boarded
  19. message        killed
  20. message        timer
  21. message        pulse
  22.  
  23. # ************************** DEATH VARS *****************************
  24.  
  25. template    tpl_explosion=+jeep_exp_blast    local
  26.  
  27. template    tpl_wreckjeep=wreckjeep            local            
  28.  
  29. template    tpl_ghost=ghost                    local
  30.  
  31. template    sparks=paddlesplash                local    # for tire dust
  32.  
  33. # ************************ MISC LOCAL VARS **************************
  34.  
  35. thing        indy                            local
  36. thing        t_WreckedJeep                    local
  37. thing        t_Ghost                            local
  38. vector        v_Vel                            local
  39.  
  40.  
  41. end
  42.  
  43. # ===================================================================
  44.  
  45. code
  46.  
  47. startup:
  48.  
  49.     indy = GetLocalPlayerThing();
  50.     return;
  51.  
  52. # -------------------------------------------------------------------
  53. user0:
  54.  
  55.     StartCutScene(2);
  56.     return;
  57. # -------------------------------------------------------------------
  58.  
  59. user1:
  60.  
  61.     EndCutScene();
  62.     return;
  63.  
  64. # -------------------------------------------------------------------
  65.  
  66. boarded:
  67.  
  68.     CopyPlayerHolsters(GetSourceRef(), GetSenderRef());
  69.     
  70.     return;
  71.  
  72. # -------------------------------------------------------------------
  73. killed:
  74.  
  75.     # If not death by poison then blow up the jeep    
  76.     if (!BITTEST(GetParam(1), 0x100))
  77.     {
  78.         CreateThing(tpl_explosion, GetLocalPlayerThing());
  79.         SetTimer(0.4);
  80.         SetPulse(0.15);
  81.         
  82.     }
  83.  
  84.     return;
  85.  
  86. # -------------------------------------------------------------------
  87. timer:
  88.  
  89.     CreateThing(tpl_explosion, GetLocalPlayerThing());
  90.     t_WreckedJeep = CreateThing(tpl_wreckjeep, GetLocalPlayerThing());
  91.     v_Vel = GetThingVel(GetLocalPlayerThing());
  92.     SetThingVel(t_WreckedJeep, v_Vel);
  93.     SetThingFlags(GetLocalPlayerThing(), 0x80000);
  94.     SetPulse(0.0);
  95.     return;
  96.  
  97. # -------------------------------------------------------------------
  98. pulse:
  99.     CreateThing(tpl_explosion, GetLocalPlayerThing());
  100.     return;
  101.  
  102. end
  103.  
  104.